package classloader;

import com.test.TestLoader;

public class ClassLoaderTest {
	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
		MyClassLoader my = new MyClassLoader("com.test.TestLoader", "D:\\javaweb2\\Spring-redis\\target\\classes");
		Class<?> clazz = my.loadClass("com.test.TestLoader");
		
		TestLoader t = (TestLoader) clazz.newInstance();
		t.print();
	}
}
